import { useRecoilState, atom } from "recoil";

export const photoDefalut = atom({
    key: "photo",
    default: {
        url: '',
        base64: '',
    },
});

export default () => {
    const [photoObj, setPhotoObj] = useRecoilState(photoDefalut);
    return {
        photoObj,
        setPhotoObj,
    };
};